﻿using SmartWMS.Common.ResponseOutput;
using SmartWMS.Domain.Base;
using SmartWMS.Server.FinanceManage.PayTypeServices.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Server.FinanceManage.PayTypeServices
{
    public interface IPayTypeService:ITransientServer
    {
        /// <summary>
        /// 财务类别列表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<Response<List<PayTypeDto>>> GetPayTypeList(string? name);

        /// <summary>
        /// 财务类别添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> AddPayType(PayTypeDto dto);

        /// <summary>
        /// 财务类别删除
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> DeletePayType(PayTypeDto dto);

        /// <summary>
        /// 财务类别批量删除
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> DeletePayTypeList(PayTypeDto dto);

        /// <summary>
        /// 根据id获取财务类别
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Response<PayTypeDto>> GetPayTypeById(KeyEntity id);

        /// <summary>
        /// 编辑财务类别
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<Response<bool>> EditPayType(PayTypeDto dto);
    }
}
